<template>
  <el-config-provider :locale="token">
    <router-view></router-view>
  </el-config-provider>
</template>

<script setup>
import zhCn from 'element-plus/es/locale/lang/zh-cn.mjs';
import en from 'element-plus/es/locale/lang/en.mjs';
import { ref } from 'vue';

const token = ref(null)
const langu = localStorage.getItem('lang')
if (langu === 'zh') {
  token.value = zhCn
} else {
  token.value = en
}

</script>

<style scoped></style>
